//
//  GGTBusinessModel.m
//  GGT
//
//  Created by 空空空 on 14/10/31.
//  Copyright (c) 2014年 GGT. All rights reserved.
//

#import "GGTBusinessModel.h"

@implementation GGTBusinessModel
-(void)dealloc
{
    [_name release];
    [_address release];
    [_latitude release];
    [_longitude release];
    [_details release];
    [_special_tips release];
    [_current_price release];
    [_list_price release];
    [super dealloc];
}
- (id)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.name = [dic objectForKey:@"name"];
        self.address = [dic objectForKey:@"address"];
        self.latitude = [dic objectForKey:@"latitude"];
        self.longitude = [dic objectForKey:@"longitude"];
        
    }
    return self;
}
- (id)initWithDic:(NSDictionary *)dic1
{
    self = [super init];
    if (self) {
        self.details = [dic1 objectForKey:@"details"];
        self.special_tips = [[dic1 objectForKey:@"restrictions"]objectForKey:@"special_tips"];
        self.current_price = [dic1 objectForKey:@"current_price"];
        self.list_price = [dic1 objectForKey:@"list_price"];
    }
    return self;
}
@end
